<?php echo stylesheet_tag('/CreatixLibPlugin/css/midia_plugin.css'); ?>
<?php echo stylesheet_tag('/CreatixLibPlugin/css/colorbox.css'); ?>
<?php echo javascript_include_tag('/CreatixLibPlugin/js/jquery.colorbox-min.js'); ?>

<div id="image-produto">
            <?php 
            	echo image_tag("/uploads/".$data[0]['nm_midia'], array("width"=>$info['width'], 'height'=> $info['height'])); 
            ?>
            <div class="image-list-data">
            	<ul>
            	<?php foreach($data as $m): ?>
            		<li>
            			<?php 
							echo link_to(
                            	image_tag(
                            		"/uploads/thumb/".$m["nm_midia"], 
                            		array(
                            			"rel" 	=>$m["id_midia"], 
                                        'width' => $info['width']/4
                            		)
                            	),
                                image_path("/uploads/".$m["nm_midia"]),
                                array(
                                  	'id'        => 'preview',
                                    'title'		=> $m['ds_midia'],
                                    'rel'		=> 'midia_gallery'
                                )
                            );
						?>
            		</li>
            	<?php endforeach; ?>
            	</ul>
            </div>
</div>


<script>
	$("a[rel='midia_gallery']").colorbox(
			{
				onOpen:function(){  },
				onLoad:function(){ },
				onComplete:function(){  },
				onCleanup:function(){  },
				onClosed:function(){ }
			});
</script>